//
//  HomePictureCollectionViewCell.m
//  MyFramework
//
//  Created by 余洋 on 2018/7/18.
//  Copyright © 2018年 余洋. All rights reserved.
//

#import "HomePictureCollectionViewCell.h"
#import <UIImageView+WebCache.h>

@interface HomePictureCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *messageLabel;

@end

@implementation HomePictureCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(HomeImageModel *)model {
    if (model) {
        _model = model;
        [self.bgImageView sd_setImageWithURL:[NSURL URLWithString:model.bgImageName]];
        self.titleLabel.text = model.title;
        [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.iconName]];
        self.messageLabel.text = model.subtitle;
    }
}

@end
